import request from '@/utils/request'

// 查询待报价列列表
export function listDbjlb(query) {
  return request({
    url: '/gd/dbjlb/list',
    method: 'get',
    params: query
  })
}

// 查询待报价列详细
export function getDbjlb(id) {
  return request({
    url: '/gd/dbjlb/' + id,
    method: 'get'
  })
}

// 新增待报价列
export function addDbjlb(data) {
  return request({
    url: '/gd/dbjlb',
    method: 'post',
    data: data
  })
}

// 生成报价单
export function genQuotation(data) {
  return request({
    url: '/gd/dbjlb/genQuotation',
    method: 'post',
    data: data
  })
}

// 修改待报价列
export function updateDbjlb(data) {
  return request({
    url: '/gd/dbjlb',
    method: 'put',
    data: data
  })
}

// 删除待报价列
export function delDbjlb(id) {
  return request({
    url: '/gd/dbjlb/' + id,
    method: 'delete'
  })
}
